﻿@model SPMS.Web.Models.LoginModel

@{
    Layout = null;
}

<!DOCTYPE html>

<html lang="zh-cn">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="application-name" content="@SPMS.Web.Properties.Resources.text_app_title">
    <meta name="description" content="@SPMS.Web.Properties.Resources.text_app_desc">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    <title>@SPMS.Web.Properties.Resources.text_app_title - 修改登录密码</title>
    @Styles.Render("~/Content/css")
    @Styles.Render("~/Content/bootstrap")
</head>
<body">
    <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <a class="brand spms-brand" href="#">@SPMS.Web.Properties.Resources.text_app_title</a>
            <div class="nav-collapse collapse ">
                <ul class="nav pull-right">
                    <li><a href="#about">收藏</a></li>
                    <li>@Html.ActionLink("帮助", "Help")</li>
                    <li>@Html.ActionLink("关于", "About")</li>
                </ul>
            </div>
        </div>
    </div>
    <div class="spms-login-background">
        <table>
            <tr>
                <td>
                    <div class="spms-login-welcome" />
                </td>
                <td rowspan="3">
                    <section id="loginForm">
                        @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
                        {
                            @Html.AntiForgeryToken()
                            <fieldset>
                                <legend>@SPMS.Web.Properties.Resources.text_login_title</legend>
                                <div class="control-group spms-field spms-focus" id="control-group-UserName">
                                    @Html.LabelFor(m => m.LoginName, "用户名：")
                                    <div class="spms-field-validation-append">
                                        @Html.TextBoxFor(m => m.LoginName, new { placeholder = "用户名", hideFocus = "true" })
                                    </div>
                                </div>
                                <div class="control-group spms-field" id="control-group-Password">
                                    @Html.LabelFor(m => m.Password, "密码：")
                                    <div class="spms-field-validation-append">
                                        @Html.PasswordFor(m => m.Password, new { placeholder = "登录密码" })
                                    </div>
                                </div>
                                <div class="control-group spms-field-indent">
                                    <label class="checkbox">
                                        @Html.CheckBoxFor(m => m.RememberMe)@SPMS.Web.Properties.Resources.text_rememberme
                                    </label>
                                </div>
                                <div class="control-group spms-field spms-validation-summary">
                                    @Html.ValidationMessageFor(m => m.Password)
                                    @Html.ValidationMessageFor(m => m.LoginName)
                                    @Html.ValidationSummary(true)
                                </div>
                                <div class="control-group">
                                    <div class="spms-controls-center">
                                        <input type="submit" value="登&nbsp;&nbsp;录" class="btn btn-primary spms-btn-submit" />
                                        <input type="button" value="清&nbsp;&nbsp;空" class="btn spms-btn-submit" onclick="spms.common.ResetForm( this );" />
                                    </div>
                                </div>
                            </fieldset>
                        }
                    </section>
                </td>
            </tr>
            <tr class="spms-row-login-app-name">
                <td>
                    <div class="spms-login-app-name">
                        @SPMS.Web.Properties.Resources.text_app_title
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div class="spms-login-version">
                        <span class="spms-login-version-title">版本信息</span>
                        <span class="spms-login-version-value">@SPMS.Web.Properties.Resources.text_version @SPMS.Web.Properties.Resources.text_copyright</span>
                    </div>
                </td>
                <td></td>
            </tr>
        </table>
    </div>
    @Scripts.Render("~/Scripts/jquery")
    @Scripts.Render("~/Scripts/jqueryval")
    <script type="text/javascript">
        //设置默认焦点
        $( function () { $( ".spms-focus :input:first" ).focus(); } );
    </script>
</body>
</html>
